package cn.edu.ncu.housinghub.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController
public class TestController {
    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    @GetMapping("/test-log")
    public String testLog() {
        logger.info("syslog 测试日志：{}", LocalDateTime.now());
        return "日志已发送";
    }
}